<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
		
		.div1
			{
				height: 200px;
				width: 200px;
				background-color: gray;
				position: absolute;  /* 绝对定位 :当位置改变 该位置的坐标原点被释放后续的其他标签占用该位置*/
				top: 50%;
				left: 50%;
				margin-left: 100px;
				margin-top: 100px;
			}
			.div2
			{
				height: 200px;
				width: 200px;
				background-color: burlywood;
				position: absolute;  /* 绝对定位 :1跟2会重叠，1覆盖掉2*/
				top: 200px;
				left: 300px;
			}
			
		</style>
	</head>
	<body>
		<div class="div1">1</div>
		<div class="div2">2</div>
	</body>
</html>